updating oE years_day
years_day
include datetime.e -- (default namespace is datetime) public function years_day(datetime dt)
Gets the Julian day of year of the supplied date.
Parameters:
- dt : a datetime to be queried.
Returns:
An integer, between 1 and 366.
Comments:
For dates earlier than 1800, this routine may give inaccurate results if the date applies to a country other than United Kingdom or a former colony thereof. The change from Julian to Gregorian calendar took place much earlier in some other European countries.
Example 1:
include std/datetime.e datetime d = new(2008, 5, 2, 0, 0, 0) integer day = years_day(d) ? day
Results:
123
Not Categorized, Please Help
|